package com.wangyg.breadstore.dao;

import com.wangyg.breadstore.model.Bread;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by wangyg6 on 2019/5/15.
 */
public interface BreadRepository extends JpaRepository<Bread, Integer> {
	Bread findByBreadId(Integer breadId);

	Bread saveAndFlush(Bread bread);

}
